#/*
# * Copyright {c} 2020-2021, SERI Development Team
# *
# * SPDX-License-Identifier: Apache-2.0
# *
# * Change Logs:
# * Date         Author          Notes
# * 2022-03-27   Lyons           first version
# */

TARGET          = riscv

Q               = @

PROJPATH        = ../..
WORKPATH        = .

COREMARKCFLAGS  = -O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4

include ../config.mk

INCLUDES       += -I.

INCFILES       += 

CFLAGS         += ${COREMARKCFLAGS}
#CFLAGS         += -g
CFLAGS         += -DPRINT_STDIO_SIM
CFLAGS         += -DFLAGS_STR=\""${COREMARKCFLAGS}"\"
CFLAGS         += -DITERATIONS=1 -DPERFORMANCE_RUN=1

LDFLAGS        += -T${PROJPATH}/libs/link.lds

LDLIBS         += 

ASMFILES       += 

CFILES         += ${WORKPATH}/core_list_join.c \
                  ${WORKPATH}/core_main.c \
                  ${WORKPATH}/core_matrix.c \
                  ${WORKPATH}/core_state.c \
                  ${WORKPATH}/core_util.c \
                  ${WORKPATH}/core_portme.c

include ../build.mk
